﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Mechanical;

namespace HYRElectric.Calculate
{
	public class DGVRowData
	{
		public DGVRowData()
		{
			this.nIndex = 0;
			this.nFJBH = 1;
			this.sFJMC = "默认房间";
			this.sFJLX = "矩形";
			this.dFJMJ = 0.0;
			this.dFJGD = 3.0;
			this.dGZMGD = 0.75;
			this.dAZGD = 3.0;
			this.dDPFSXS = new FSXSData();
			this.dSBFSXS = new FSXSData();
			this.dXBFSXS = new FSXSData();
			this.dDMFSXS = new FSXSData();
			this.dCMJ = 0.0;
			this.dCFSXS = 20.0;
			this.dPJZD = 300.0;
			this.dYQGLMD = 11.0;
			this.djcsData = new DJCSData();
			this.gycsData = new GYCSData();
			this.layoutData = new LayoutData();
			this.calResultData = new CalResultData();
			this.sJZWLX = "";
			this.sCSLX = "";
			this.dPerimeter = 0.0;
			this.dWallPerimeter = 0.0;
			this.arPtRoom = new List<XYZ>();
			this.room = null;
		}

		public void Set(DGVRowData data)
		{
			this.nFJBH = data.nFJBH;
			this.sFJMC = data.sFJMC;
			this.sFJLX = data.sFJLX;
			this.dFJMJ = data.dFJMJ;
			this.dFJGD = data.dFJGD;
			this.dGZMGD = data.dGZMGD;
			this.dAZGD = data.dAZGD;
			this.dDPFSXS.Set(data.dDPFSXS);
			this.dSBFSXS.Set(data.dSBFSXS);
			this.dXBFSXS.Set(this.dXBFSXS);
			this.dDMFSXS.Set(this.dDMFSXS);
			this.dCMJ = data.dCMJ;
			this.dCFSXS = data.dCFSXS;
			this.dPJZD = data.dPJZD;
			this.dYQGLMD = data.dYQGLMD;
			this.djcsData.Set(data.djcsData);
			this.gycsData.Set(data.gycsData);
			this.layoutData.Set(data.layoutData);
			this.calResultData.Set(data.calResultData);
			this.sJZWLX = data.sJZWLX;
			this.sCSLX = data.sCSLX;
			this.dPerimeter = data.dPerimeter;
			this.dWallPerimeter = data.dWallPerimeter;
			this.arPtRoom = data.arPtRoom;
			this.room = data.room;
		}

		public int nIndex;

		public int nFJBH;

		public string sFJMC;

		public string sFJLX;

		public double dFJMJ;

		public double dFJGD;

		public double dGZMGD;

		public double dAZGD;

		public FSXSData dDPFSXS;

		public FSXSData dSBFSXS;

		public FSXSData dXBFSXS;

		public FSXSData dDMFSXS;

		public double dCMJ;

		public double dCFSXS;

		public double dPJZD;

		public double dYQGLMD;

		public DJCSData djcsData;

		public GYCSData gycsData;

		public LayoutData layoutData;

		public CalResultData calResultData;

		public string sJZWLX;

		public string sCSLX;

		public double dPerimeter;

		public double dWallPerimeter;

		public List<XYZ> arPtRoom;

		public Space room;
	}
}
